package myJs.implicits

import org.scalajs.dom.{DragEvent, Element, Event}
import org.scalajs.dom.raw.HTMLFormElement

import scala.scalajs.js

/**
 * Created by Administrator on 2020/1/16
 */
trait MyEventTool {

  implicit class MyEvent(e: Event) {

    def toDragEvent = {
      e.asInstanceOf[js.Dynamic].originalEvent.asInstanceOf[DragEvent]
    }

  }

}
